import request from '@/utils/request';

// 获取人物列表
export function getPage(query) {
    // 设置请求为PageQuery
    query.service = 'PageQuery';
    // 发送请求
    return request({
        url: '/record/personage/getPage',
        method: 'post',
        data: query
    });
}

// 获取人物详情
export function getDetail(query) {
    // 设置请求为DataQuery
    query.service = 'DataQuery';
    // 发送请求
    return request({
        url: '/record/personage/getDetail',
        method: 'post',
        data: query
    });
}